﻿using FluentValidation.Results;

namespace BlogSystem.Exception;

public class ValidatorException(List<ValidationFailure> failures) : System.Exception(string.Join(";",
    failures.Select(x => x.ErrorMessage)))
{
    public List<ValidationFailure> ValidationFailures { get; set; } = failures;
    
}